﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="secondhand.L4view.search" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body style="height: 1518px; width: 1330px;">
    <form id="form1" runat="server" style="width: 1330px">
    <div style="border-bottom: 2px solid #FF6600; height: 135px; width: 1330px; border-left-color: #FF6600; border-left-width: 2px; border-right-color: #FF6600; border-right-width: 2px; border-top-color: #FF6600; border-top-width: 2px;">
      <div style="position: absolute; top: 190px; left: 50px;">
          <asp:Label ID="Label4" 
              runat="server" Text="按商品名查询：" ForeColor="Black"></asp:Label></div>
        <div style="position: absolute; top: 190px; left: 186px;">
            <asp:TextBox ID="TextBox1" runat="server"  ForeColor="#68ADE0" Font-Size="Small" 
            Width="182px" Height="19px" BorderStyle="Solid" BorderWidth="1px" ></asp:TextBox></div>
       <div style="position: absolute; top: 190px; left: 413px;"><asp:Button ID="Button1" 
               runat="server" Text="确定" BackColor="#FFFFB0" 
          onmouseover="this.style.backgroundColor='#ACFFAC'" 
             onmouseout ="this.style.backgroundColor='#FFFFB0'" ForeColor="Black" 
          onclick="Button1_Click" Width="78px" BorderColor="#68ADE0" BorderStyle="Solid" 
               BorderWidth="1px" /></div>

        <div style="position: absolute; top: 45px; left: 26px; width: 130px; height: 62px;">
            <asp:Image ID="Image2" runat="server" Height="59px" 
                ImageUrl="~/images/logo.png" Width="128px" />
        </div>

  </div>  
    <div style="position: absolute; top: 190px; left: 700px;"><asp:Label ID="Label3" 
            runat="server" Text="按商品类型查询:" ForeColor="Black"></asp:Label></div>
       <div style="position: absolute; top: 189px; left: 845px; ">
           <asp:TextBox ID="TextBox3" runat="server" Width="182px" BorderColor="#68ADE0" 
               BorderStyle="Solid" BorderWidth="1px" Height="19px"></asp:TextBox>
       </div> 
       <div style="position: absolute; top: 190px; left: 1074px; height: 19px; width: 77px;"><asp:Button ID="Button2" 
               runat="server" Text="确定" BackColor="#FFFFB0" 
          onmouseover="this.style.backgroundColor='#ACFFAC'" 
             onmouseout ="this.style.backgroundColor='#FFFFB0'" ForeColor="Black" 
          onclick="Button2_Click" Width="77px" BorderColor="#68ADE0" BorderStyle="Solid" 
               BorderWidth="1px" /></div>
      </br>
   
    <div style="position: absolute; top: 240px; left: 50px;">
        <asp:Label ID="Label5" 
            runat="server" Text="按商品价格查询:" ForeColor="Black"></asp:Label></div>
       <div style="position: absolute; top: 239px; left: 186px; margin-top: 0px;">
           <asp:TextBox ID="TextBox2w" runat="server"  ForeColor="Blue" Font-Size="Small" 
            Width="182px" BorderColor="#68ADE0" BorderStyle="Solid" BorderWidth="1px" 
               Height="19px" ></asp:TextBox></div>
       <div style="position: absolute; top: 240px; left: 413px;"><asp:Button ID="Button3" 
               runat="server" Text="确定" BackColor="#FFFFB0" 
          onmouseover="this.style.backgroundColor='#ACFFAC'" 
             onmouseout ="this.style.backgroundColor='#FFFFB0'" ForeColor="Black" 
          onclick="Button3_Click" Width="77px" BorderColor="#68ADE0" BorderStyle="Solid" 
               BorderWidth="1px" /></div>
      <br />
     </br>
    <div style="position: absolute; top: 240px; left: 700px; margin-top: 4px;"><asp:Label ID="Label1" 
            runat="server" Text="按卖家姓名查询:" ForeColor="Black"></asp:Label></div>
       <div style="position: absolute; top: 242px; left: 845px;">
           <asp:TextBox ID="TextBox2" runat="server"  ForeColor="Blue" Font-Size="Small" 
            Width="182px" BorderColor="#68ADE0" BorderStyle="Solid" BorderWidth="1px" 
               Height="19px" ></asp:TextBox></div>
       <div style="position: absolute; top: 240px; left: 1074px;"><asp:Button ID="Button4" 
               runat="server" Text="确定" BackColor="#FFFFB0" 
          onmouseover="this.style.backgroundColor='#ACFFAC'" 
             onmouseout ="this.style.backgroundColor='#FFFFB0'" ForeColor="Black" 
          onclick="Button4_Click" Width="77px" BorderColor="#68ADE0" BorderStyle="Solid" 
               BorderWidth="1px" /></div>
      <br />
      <br />
      <div style="position: absolute; top: 344px; left: 601px;"><asp:Label ID="Label2" runat="server" Text="没有商品！" Visible="False"></asp:Label></div>
      <br />
  </br>
  
 
  <div id="xijie"  runat="server" 
        
        style="position: absolute; top: 335px; left: 230px; margin-top: 11px; height: 1046px;">


              

   
      </br>
        <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound"
            AutoGenerateColumns="False" BackColor="White" BorderStyle="None" AllowPaging="True"
            Width="813px" GridLines="None" BorderColor="White" BorderWidth="0px" CellPadding="4"
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged1" Height="49px" 
          PageSize="8">
           <Columns>
               <asp:BoundField DataField="goods_name" HeaderText="商品名" 
                   SortExpression="goods_name" />
                 <asp:TemplateField   HeaderText="商品图片"> 
                 <ItemTemplate> 
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("goods_picture") %>' Width="90" Height="90" ImageAlign="Middle" />
                        </ItemTemplate> 
                        </asp:TemplateField> 
               <asp:BoundField DataField="goods_type" HeaderText="商品类型" 
                   SortExpression="goods_type" />
               <asp:BoundField DataField="goods_price" HeaderText="商品价格" 
                   SortExpression="goods_price" />
               <asp:BoundField DataField="goods_describe" HeaderText="商品描述" 
                   SortExpression="goods_describe" />
               <asp:BoundField DataField="sale_time" HeaderText="上架时间" 
                   SortExpression="sale_time" />
               <asp:BoundField DataField="saler_name" HeaderText="出售人" 
                   SortExpression="saler_name" />
               <asp:TemplateField HeaderText="购买" ItemStyle-Width="40" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                       <asp:LinkButton runat="server" ID="lbtnUp" CommandArgument='<%#Eval("goods_name") %>' OnClick="lbtnUp_Click">进入</asp:LinkButton> 
                    </ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                </asp:TemplateField>
           </Columns>
           <FooterStyle BackColor="White" ForeColor="#333333" />
           <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
           <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
           <RowStyle BackColor="White" ForeColor="#333333" />
           <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
           <SortedAscendingCellStyle BackColor="#F7F7F7" />
           <SortedAscendingHeaderStyle BackColor="#487575" />
           <SortedDescendingCellStyle BackColor="#E5E5E5" />
           <SortedDescendingHeaderStyle BackColor="#275353" />
       </asp:GridView>
       <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
          onselecting="ObjectDataSource1_Selecting" SelectMethod="GetmarkAll" 
          TypeName="secondhand.L2busslogic.goodsBL">
           <SelectParameters>
               <asp:Parameter Name="nameq" Type="String" />
           </SelectParameters>
       </asp:ObjectDataSource>
         
      </br>
        </br>

             
 </div>
    



    <div align="center" style="width: 1103px; height: 88px; background-color: #DEE1B7;
        position: relative; top: 1117px; left: 99px;">

        <div style="position: absolute; top: 13px; left: 524px; width: 143px;">
            <asp:Label ID="Label10" runat="server" Font-Size="Small" ForeColor="#006666" 
                style="font-size: 11pt" Text="二手交易版权所有"></asp:Label>
        </div>
        <div style="position: absolute; top: 52px; left: 266px; width: 659px;">
            <asp:Label ID="Label12" runat="server" ForeColor="#006666" 
                style="font-size: 11pt" 
                Text="开发团队： Fantast    地址：重庆市北碚区天生路2号    邮编:400715  （渝ICP备  06005063号）"></asp:Label>
        </div>

  </div>
    
    </form>
</body>
</html>
